﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace cadbom
{
    public partial class CommandForm : Form
    {
        CopyBlockDwg copy = null;
        public CommandForm()
        {
            InitializeComponent();
            copy = new CopyBlockDwg();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            //CopyBlockDwg copy = new CopyBlockDwg();
            copy.wblockEntity();
        }

        private void button2_Click(object sender, EventArgs e)
        {
            //CopyBlockDwg copy = new CopyBlockDwg();
            copy.XXA();
        }

        private void button3_Click(object sender, EventArgs e)
        {
            //CopyBlockDwg copy = new CopyBlockDwg();
            copy.openCadFile("");
        }

        private void button4_Click(object sender, EventArgs e)
        {
            //CopyBlockDwg copy = new CopyBlockDwg();
            //copy.ExportBlockToDwg();
            copy.CopyToNewDwgCommand();

        }

        private void button5_Click(object sender, EventArgs e)
        {
            //CopyBlockDwg copy = new CopyBlockDwg();
            //copy.ExportBlockToDwg();
            copy.ExportToNewDwgEnhanced();

        }

        private void button6_Click(object sender, EventArgs e)
        {
             //CopyBlockDwg copy = new CopyBlockDwg();
            //copy.ExportBlockToDwg();
             copy.InitDomainConfig();
            
        }

        private void button7_Click(object sender, EventArgs e)
        {
            //CopyBlockDwg copy = new CopyBlockDwg();

            copy.ExecuteLisp(null);
        }

        private void button8_Click(object sender, EventArgs e)
        {
            //CopyBlockDwg copy = new CopyBlockDwg();

            copy.opendwgfile();
        }

        private void button9_Click(object sender, EventArgs e)
        {
            //CopyBlockDwg copy = new CopyBlockDwg();

            copy.ExportBlocksToPDF();

        }

        private void button10_Click(object sender, EventArgs e)
        {
            //CopyBlockDwg copy = new CopyBlockDwg();

            copy.SaveSelectedObjects();
        }

        private void button11_Click(object sender, EventArgs e)
        {
            string dwgFilePath = @"d:\工程图\11HZXC304-1.dwg";
            CopyBlockDwg.Dwg2Pdf(dwgFilePath);
        }

        private void button12_Click(object sender, EventArgs e)
        {
            //CopyBlockDwg copy = new CopyBlockDwg();

            copy.GetBlockWholeScale();
        }

        private void button13_Click(object sender, EventArgs e)
        {
            //CopyBlockDwg copy = new CopyBlockDwg();

            copy.GetPaperSpaceViewportInfo();
        }

    }
}
